﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000401 RID: 1025
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DrinkMakerGuest : IMessage<DrinkMakerGuest>, IMessage, IEquatable<DrinkMakerGuest>, IDeepCloneable<DrinkMakerGuest>, IBufferMessage
	{
		// Token: 0x17000D25 RID: 3365
		// (get) Token: 0x06002DE9 RID: 11753 RVA: 0x0007E5A1 File Offset: 0x0007C7A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DrinkMakerGuest> Parser
		{
			get
			{
				return DrinkMakerGuest._parser;
			}
		}

		// Token: 0x17000D26 RID: 3366
		// (get) Token: 0x06002DEA RID: 11754 RVA: 0x0007E5A8 File Offset: 0x0007C7A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DrinkMakerGuestReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D27 RID: 3367
		// (get) Token: 0x06002DEB RID: 11755 RVA: 0x0007E5BA File Offset: 0x0007C7BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DrinkMakerGuest.Descriptor;
			}
		}

		// Token: 0x06002DEC RID: 11756 RVA: 0x0007E5C1 File Offset: 0x0007C7C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerGuest()
		{
		}

		// Token: 0x06002DED RID: 11757 RVA: 0x0007E5D4 File Offset: 0x0007C7D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerGuest(DrinkMakerGuest other) : this()
		{
			this.faith_ = other.faith_;
			this.guestId_ = other.guestId_;
			this.unlockedFavorTagList_ = other.unlockedFavorTagList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002DEE RID: 11758 RVA: 0x0007E621 File Offset: 0x0007C821
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerGuest Clone()
		{
			return new DrinkMakerGuest(this);
		}

		// Token: 0x17000D28 RID: 3368
		// (get) Token: 0x06002DEF RID: 11759 RVA: 0x0007E629 File Offset: 0x0007C829
		// (set) Token: 0x06002DF0 RID: 11760 RVA: 0x0007E631 File Offset: 0x0007C831
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Faith
		{
			get
			{
				return this.faith_;
			}
			set
			{
				this.faith_ = value;
			}
		}

		// Token: 0x17000D29 RID: 3369
		// (get) Token: 0x06002DF1 RID: 11761 RVA: 0x0007E63A File Offset: 0x0007C83A
		// (set) Token: 0x06002DF2 RID: 11762 RVA: 0x0007E642 File Offset: 0x0007C842
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GuestId
		{
			get
			{
				return this.guestId_;
			}
			set
			{
				this.guestId_ = value;
			}
		}

		// Token: 0x17000D2A RID: 3370
		// (get) Token: 0x06002DF3 RID: 11763 RVA: 0x0007E64B File Offset: 0x0007C84B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedFavorTagList
		{
			get
			{
				return this.unlockedFavorTagList_;
			}
		}

		// Token: 0x06002DF4 RID: 11764 RVA: 0x0007E653 File Offset: 0x0007C853
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DrinkMakerGuest);
		}

		// Token: 0x06002DF5 RID: 11765 RVA: 0x0007E664 File Offset: 0x0007C864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DrinkMakerGuest other)
		{
			return other != null && (other == this || (this.Faith == other.Faith && this.GuestId == other.GuestId && this.unlockedFavorTagList_.Equals(other.unlockedFavorTagList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002DF6 RID: 11766 RVA: 0x0007E6C4 File Offset: 0x0007C8C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Faith != 0U)
			{
				num ^= this.Faith.GetHashCode();
			}
			if (this.GuestId != 0U)
			{
				num ^= this.GuestId.GetHashCode();
			}
			num ^= this.unlockedFavorTagList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002DF7 RID: 11767 RVA: 0x0007E72A File Offset: 0x0007C92A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002DF8 RID: 11768 RVA: 0x0007E732 File Offset: 0x0007C932
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002DF9 RID: 11769 RVA: 0x0007E73C File Offset: 0x0007C93C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.unlockedFavorTagList_.WriteTo(ref output, DrinkMakerGuest._repeated_unlockedFavorTagList_codec);
			if (this.Faith != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Faith);
			}
			if (this.GuestId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GuestId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002DFA RID: 11770 RVA: 0x0007E7A8 File Offset: 0x0007C9A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Faith != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Faith);
			}
			if (this.GuestId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GuestId);
			}
			num += this.unlockedFavorTagList_.CalculateSize(DrinkMakerGuest._repeated_unlockedFavorTagList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002DFB RID: 11771 RVA: 0x0007E814 File Offset: 0x0007CA14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DrinkMakerGuest other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Faith != 0U)
			{
				this.Faith = other.Faith;
			}
			if (other.GuestId != 0U)
			{
				this.GuestId = other.GuestId;
			}
			this.unlockedFavorTagList_.Add(other.unlockedFavorTagList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002DFC RID: 11772 RVA: 0x0007E875 File Offset: 0x0007CA75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002DFD RID: 11773 RVA: 0x0007E880 File Offset: 0x0007CA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 74U)
				{
					if (num == 72U || num == 74U)
					{
						this.unlockedFavorTagList_.AddEntriesFrom(ref input, DrinkMakerGuest._repeated_unlockedFavorTagList_codec);
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Faith = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.GuestId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001222 RID: 4642
		private static readonly MessageParser<DrinkMakerGuest> _parser = new MessageParser<DrinkMakerGuest>(() => new DrinkMakerGuest());

		// Token: 0x04001223 RID: 4643
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001224 RID: 4644
		public const int FaithFieldNumber = 10;

		// Token: 0x04001225 RID: 4645
		private uint faith_;

		// Token: 0x04001226 RID: 4646
		public const int GuestIdFieldNumber = 15;

		// Token: 0x04001227 RID: 4647
		private uint guestId_;

		// Token: 0x04001228 RID: 4648
		public const int UnlockedFavorTagListFieldNumber = 9;

		// Token: 0x04001229 RID: 4649
		private static readonly FieldCodec<uint> _repeated_unlockedFavorTagList_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x0400122A RID: 4650
		private readonly RepeatedField<uint> unlockedFavorTagList_ = new RepeatedField<uint>();
	}
}
